<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{listaCodeudores.page1}" id="page1">
            <ui:html binding="#{listaCodeudores.html1}" id="html1">
                <ui:head binding="#{listaCodeudores.head1}" id="head1">
                    <ui:link binding="#{listaCodeudores.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{listaCodeudores.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{listaCodeudores.form1}" id="form1">
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <h:panelGrid binding="#{listaCodeudores.gridPanelGlobal}" id="gridPanelGlobal" style="left: 48px; top: 120px; position: absolute">
                            <ui:staticText binding="#{listaCodeudores.titulo1}" id="titulo1"
                                style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px" text="Lista de codeudores"/>
                            <ui:alert binding="#{listaCodeudores.alert1}" id="alert1"/>
                            <ui:table augmentTitle="false" binding="#{listaCodeudores.table1}" clearSortButton="true" id="table1" lite="true"
                                paginateButton="true" paginationControls="true" sortPanelToggleButton="true" style="width:700px" title="Codeudores" width="700">
                                <script><![CDATA[
           /* ----- Functions for Table Preferences Panel ----- */
           /*
           * Toggle the table preferences panel open or closed
           */
           function togglePreferencesPanel() {
           var table = document.getElementById("form1:table1");
           table.toggleTblePreferencesPanel();
           }
           /* ----- Functions for Filter Panel ----- */
           /*
           * Return true if the filter menu has actually changed,
           * so the corresponding event should be allowed to continue.
           */
           function filterMenuChanged() {
           var table = document.getElementById("form1:table1");
           return table.filterMenuChanged();
           }
           /*
           * Toggle the custom filter panel (if any) open or closed.
           */
           function toggleFilterPanel() {
           var table = document.getElementById("form1:table1");
           return table.toggleTableFilterPanel();
           }
           /* ----- Functions for Table Actions ----- */
           /*
           * Initialize all rows of the table when the state
           * of selected rows changes.
           */
           function initAllRows() {
           var table = document.getElementById("form1:table1");
           table.initAllRows();
           }
           /*
           * Set the selected state for the given row groups
           * displayed in the table.  This functionality requires
           * the 'selectId' of the tableColumn to be set.
           *
           * @param rowGroupId HTML element id of the tableRowGroup component
           * @param selected Flag indicating whether components should be selected
           */
           function selectGroupRows(rowGroupId, selected) {
           var table = document.getElementById("form1:table1");
           table.selectGroupRows(rowGroupId, selected);
           }
           /*
           * Disable all table actions if no rows have been selected.
           */
           function disableActions() {
           // Determine whether any rows are currently selected
           var table = document.getElementById("form1:table1");
           var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
           // Set disabled state for top actions
           document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
           // Set disabled state for bottom actions
           document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
           }]]></script>
                                <ui:tableRowGroup binding="#{listaCodeudores.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                    sourceData="#{listaCodeudores.dataProviderCodeudores}" sourceVar="currentRow">
                                    <ui:tableColumn align="right" binding="#{listaCodeudores.tableColumn2}" headerText="NIT" id="tableColumn2">
                                        <ui:hyperlink action="#{listaCodeudores.hyperlink1_action}" binding="#{listaCodeudores.hyperlink1}" id="hyperlink1"
                                            style="font-size: 10px" text="#{listaCodeudores.nitCompleto}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{listaCodeudores.tableColumn5}" headerText="Nombre" id="tableColumn5" sort="SCT0065.NMBRE">
                                        <ui:staticText binding="#{listaCodeudores.staticText5}" id="staticText5" style="font-size: 10px" text="#{listaCodeudores.nombreCompleto}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{listaCodeudores.tableColumn1}" headerText="Fecha de registro" id="tableColumn1" sort="SCT0065.FCHARGSTROSLCTUD">
                                        <ui:staticText binding="#{listaCodeudores.staticText1}" id="staticText1" style="font-size: 10px" text="#{currentRow.value['SCT0065.FCHARGSTROSLCTUD']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn align="center" binding="#{listaCodeudores.tableColumn3}" id="tableColumn3">
                                        <ui:button action="#{listaCodeudores.button1_action}" binding="#{listaCodeudores.button1}" id="button1" mini="true"
                                            onClick="return confirma()" primary="true" text="Eliminar"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                                <!-- Actions (Top) -->
                                <f:facet name="actionsTop">
                                    <ui:panelGroup binding="#{listaCodeudores.groupPanelBotones}" id="groupPanelBotones">
                                        <ui:button action="#{listaCodeudores.botonRegresar_action}" binding="#{listaCodeudores.botonRegresar}"
                                            id="botonRegresar" mini="true" primary="true" text="Regresar"/>
                                        <ui:button action="#{listaCodeudores.botonCerrar_action}" binding="#{listaCodeudores.botonCerrar}" id="botonCerrar"
                                            mini="true" primary="true" text="Cerrar"/>
                                    </ui:panelGroup>
                                </f:facet>
                            </ui:table>
                        </h:panelGrid>
                        <ui:script binding="#{listaCodeudores.script1}" id="script1" url="/resources/funciones.js"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
